

package testsubjects;

import java.util.function.BiFunction;
import java.util.function.Function;

public class NonStaticFunctionFactory {

    private NonStaticFunctionFactory() {
    }

    public static BiFunction<String, String, String> getAnonymousNonSerializableBiFunction(final String returnValue) {
        return new BiFunction<>() {
            @Override
            public String apply(String s, String s2) {
                return returnValue;
            }
        };
    }

    public static Function<String, String> getAnonymousNonSerializableFunction(final String returnValue) {
        return s -> returnValue;
    }

}
